// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import {store} from "./vuex/store"
import $ from 'jquery'
// mintui
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
// 轮播图插件
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'
//vuex
import Vuex from 'vuex'
import { Switch,Picker,Popup,InfiniteScroll  } from 'mint-ui';
import VueClipboard from 'vue-clipboard2'
import  { LoadingPlugin,ConfirmPlugin } from 'vux'
import './methods/filters'
import PublicExtend from 'common/extendTemplate/index.js';

//自定义组件部分
import PublicComponent from 'common/index.js';
Vue.use(PublicComponent)
Vue.use(PublicExtend)
Vue.use(ConfirmPlugin)                      //注册confinfirm插件
Vue.use(LoadingPlugin)                      //注册loading插件
Vue.use(VueClipboard)
Vue.use(InfiniteScroll)//无线滚动插件
Vue.component(Popup.name, Popup);
Vue.component(Switch.name, Switch);
Vue.component(Picker.name, Picker);
Vue.use(Vuex)
Vue.use(VueAwesomeSwiper)
Vue.use(MintUI)

Vue.config.productionTip = false


/* eslint-disable no-new */
var bus = new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App },
  store
})
